• Description:
    Constant operators are the same as in normal equations, but destination and all members must be constants. Only possible assign operator is "=" and it can be used only in:
    • CONST, ENUM, SET, FLAG keywords to define constants.
    • default variable sizes like: DEF a[ constant_equation ]:LONG
    • default values in arguments in functions and procedures
    • default return values in procedures
    • OBJECT item sizes
    • global list items
    • binary data values


  • Constant functions:
    PowerD makes possible to use also mathematic functions in constant definitions. Pay attention that all of these computations makes the compiler only, so You can use them also with NOFPU OPTion. It won't generate any code, it is computed internaly:
    FunctionNameComment
    SIN(a) Sinus Floats only
    COS(a) Cosinus Floats only
    TAN(a) Tangents Floats only
    ASIN(a) Arcus sinus Floats only
    ACOS(a) Arcus cosinus Floats only
    ATAN(a) Arcus tangents Floats only
    SINH(a) Hyperbolic sinus Floats only
    COSH(a) Hyperbolic cosinus Floats only
    TANH(a) Hyperbolic tangents Floats only
    EXP(a) Exponent Floats only
    LN(a) Natural logarithm Floats only
    LOG(a) Logarithm with base of 10 Floats only
    RAD(a) Degree to radian Returns only float
    ABS(a) Absolute value
    NEG(a) Negate value
    FLOOR(a) Floor value Floats only
    CEIL(a) Ceil value Floats only
    POW(a,b) Power Floats only
    SQRT(a) Square root Floats only
    FAC(a) Factorial